/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved.
 * 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.smarthome.domain.bean.ShBuilding;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;
import com.smarthome.base.dao.base.BaseDaoImpl;
import com.smarthome.base.dao.ShBuildingDao;

/**
 * ShBuildingDao 实现类
 * @author KongXiangyu
 * @since 2015-09-07
 */
@Repository("shBuildingDao")
public class ShBuildingDaoImpl extends BaseDaoImpl<ShBuilding,Long> implements ShBuildingDao {
	private final static String NAMESPACE = "com.smarthome.base.dao.ShBuildingDao.";
	
	//返回本DAO命名空间,并添加statement
	public String getNameSpace(String statement) {
		return NAMESPACE + statement;
	}

	@Override
	public List<ShBuilding> seleteBuildings(ShBuilding shBuilding) {
		// TODO Auto-generated method stub
		return selectList(getNameSpace("selectBuildingList"), shBuilding);
	}

	@Override
	public List<ShBuilding> seleteBuidingUnits(ShBuilding shBuilding) {
		shBuilding.setIsUnit(1);
		return selectList(getNameSpace("selectBuildingUnitList"), shBuilding);
	}

		
}